﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Common/WebSiteMaster.master" AutoEventWireup="true"
    CodeBehind="D_MasterDetailTemplate.aspx.cs" Inherits="ScottCateAjax2008.Lesson10.D_MasterDetailTemplate" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="SM1" runat="server">
        <Scripts>
            <asp:ScriptReference ScriptMode="Debug" Path="~/Common/Scripts/ASPNET4Preview3/MicrosoftAjaxTemplates.js" />
            <asp:ScriptReference Path="~/Lesson10/D_MasterDetailTemplate.aspx.js" />
        </Scripts>
        <Services>
            <asp:ServiceReference Path="~/Services/NorthwindService.asmx" />
        </Services>
    </asp:ScriptManager>
    <h1>
        ASP.NET 4.0 - Templates</h1>
    <table>
        <tr>
            <td valign="top">
                <h2>
                    Customers</h2>
                <hr />
                <table id="customers" border="1" class="sys-template">
                    <tr>
                        <td sys:command="select">
                            {{ Id }}
                        </td>
                        <td>
                            {{ Name }}
                        </td>
                    </tr>
                </table>
            </td>
            <td valign="top">
                <h2>
                    Customer Orders</h2>
                <hr />
                <table id="orders" border="1" class="sys-template">
                    <tr>
                        <td sys:command="select">
                            {{ Id }}
                        </td>
                        <td>
                            {{ CustomerId }}
                        </td>
                    </tr>
                </table>
            </td>
            <td valign="top">
                <h2>
                    Customer Order Details</h2>
                <hr />
                <table id="details" border="1" class="sys-template">
                    <tr>
                        <td sys:command="select">
                            {{ Id }}
                        </td>
                        <td>
                            {{ ProductId }}
                        </td>
                        <td>
                            {{ Quantity }}
                        </td>
                        <td>
                            {{ UnitPrice }}
                        </td>
                        <td>
                            {{ Discount }}
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>
